--TEST--
US: Post-parse remainder
--FILE--
<?php
/**
 * Checks post-parser remainder
 *
 * PHP version 5
 *
 * @category Structures
 * @package  Structures_Location
 * @author   Philippe Jausions <Philippe.Jausions@11abacus.com>
 * @copyight 2008 by Philippe Jausions / 11abacus
 * @license  http://www.opensource.org/licenses/bsd-license.php New BSD License
 * @version  CVS: $Id:$
 * @link     http://pear.11abacus.com/package/Structures_Location
 */

/**
 * Required dependencies 
 */
require_once 'Structures/Location/US/Parser.php';

/**
 * Main
 */

// Include data
require 'US_Addresses.inc';

$parser = new Structures_Location_US_Parser();

echo "Lines remaining after parse\n"; 

foreach ($addresses as $id => $address) {
    echo $id.': ';
    try {
        $location = $parser->parse($address, 'Structures_Location', $remainder);
        echo count($remainder).' line(s): '.implode("\n", $remainder);
    } catch (Exception $e) {
        echo count($remainder).' line(s): '.implode("\n", $remainder);
        //echo $e->getMessage();
    }
    echo "\n-------------------\n";
}

?>
--EXPECT--
Lines remaining after parse
0: 1 line(s): Mr. John Doe
-------------------
1: 1 line(s): Ms Jane Doe
-------------------
2: 1 line(s): Joe Dooh
-------------------
3: 1 line(s): Anonymous
-------------------
4: 1 line(s): Captain Hook
-------------------
5: 0 line(s): 
-------------------
6: 1 line(s): Ellen Mary
-------------------
7: 1 line(s): Oneliner Inc.
-------------------
8: 2 line(s): Not an address
Just some text in box
